// 轮播图表模型
const mongoose = require('mongoose');
let schema = new mongoose.Schema({
  name: {
    type: String,
    required: true,
    unique: true,
  },
  is_show:{
    type:Number,
    default: 1
  }
})

// 创建表模型(用于操作表的数据)
let model = mongoose.model('carousel', schema, 'carousel');

// 导出表模型
module.exports = model